import request from '@/utils/request';

export async function queryRule(params) {
  const limit = params.pageSize;
  const page = params.current;
  const my_params = {
    limit: limit,
    page: page,
  };
  Object.assign(params, my_params);
  delete params.current;
  delete params.pageSize;
    return request('/video/page', {
        params,
    });
}

export async function updateStatus(params) {
  return request('/video/update', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
export async function updateDescription(params) {
  return request('/video/updateDescription', {
    method: 'POST',
    data: {
      ...params,
    },
  });
}
